<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>我要参赛——e路通杯第五届全国大学生网络创新应用大赛</title>
{$Think.config.__META__}
<link href="__CSS__/common.css" rel="stylesheet" type="text/css" />
<link href="__CSS__/Version4Master.css" rel="stylesheet" type="text/css" />
<link href="__CSS__/Student/reg.css" rel="stylesheet" type="text/css" />
<link href="__CSS__/Student/validator.css" rel="stylesheet" type="text/css" />
<script src="__JS__/jquery-1.8.2.js" type="text/javascript"></script>
<script src="__JS__/formValidator-4.0.1.js" type="text/javascript" charset="UTF-8"></script>
<script src="__JS__/ValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
<script src="__JS__/DateTimeMask.js" type="text/javascript" charset="UTF-8"></script>
<style type="text/css">
.STYLE1
{
	color: #FF3300;
	font-size: 12px;
}
.STYLE2
{
	font-size: 14px;
}
.STYLE3
{
	font-size: 12px;
}
.input-button, .input-submit
{
	background-color: #005EAC;
	border-color: #B8D4E8 #124680 #124680 #B8D4E8;
	border-style: solid;
	border-width: 1px;
	color: #FFFFFF;
	cursor: pointer;
	font-size: 12px;
	padding: 4px 15px;
	text-align: center;
}
input.gray
{
	background: none repeat scroll 0 0 #F0F0F0 !important;
	border-color: #FFFFFF #848484 #848484 #FFFFFF !important;
	border-style: solid;
	border-width: 1px;
	color: #333333 !important;
</style>    
</head>
<body>
<div id="container">
    <!-- 此处引入 header 文件-->
	<include file="./Match/Tpl/Include/header.html" />
	<!-- 此处引入 header 文件-->    
    <div class="clear"></div>
    <div id="position">
        <ul class="position">
            <li style="background: url(img/positionL.jpg) no-repeat; left: 0; width: 15px;">&nbsp;</li>
            <li style="padding-top: 4px;">您的位置：<a href="../Index.aspx">大赛首页</a>》详细注册</li>
            <li style="background: url(img/positionR.jpg) right; float: right;">&nbsp;</li>
        </ul>
    </div>
	<iframe src="" name="iframeaddDel" style="display:none;"></iframe>
    <div id="main1">
        <h1>学生详细注册</h1>
        <div class="list">
			<form action="__URL__/addDetailForm" target="iframeaddDel" method="post" id="regdetailForm">
			<input type="hidden" name="UserId" value="{$userdetail[0]['UserId']}"/>
            <table width="950" border="0" cellspacing="0" cellpadding="0" style="font-size: 14px;">
                <tr>
                    <td colspan="4">
                        <h3 style="text-align: center;">
                           现在就参赛吗？先来完善一下详细的个人信息吧！详细注册后，你可以创建团队、加入团队、参加比赛。
                        </h3>
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td width="256">
                       <div align="right" class="STYLE2">登录邮箱：</div>
                    </td>
                    <td width="178">
                        <input name="UserName" type="text" value="{$userdetail[0]['UserName']}" id="UserName" disabled="disabled" />
                    </td>
                    <td width="429">
                        <div class="onShow">登录用户名不可以修改</div>
                    </td>
                </tr>
                <tr>
					<td width="87" height="35">&nbsp;</td>
					<td>
						<div align="right" class="STYLE2">*高校所在地区:</div>
					</td>
					<td>
						<select id='OrgLocationId' name="OrgLocationId">
						  <option value="0">---高校所在地区---</option>
						  <volist name="province" id="vo">
						  <option value='{$vo.Id}' <if condition="$vo.Name eq $userdetail[0]['OrgLocation']">selected="selected"</if>>{$vo.Name}</option>
						  </volist>
						</select>
						<input id="OrgLocation" name="OrgLocation" type="hidden" value="{$userdetail[0]['OrgLocation']}" /> 
					</td>
					<td><div id="OrgLocationIdTip" style="width: 250px" /></td>
				</tr>
				<tr id="OrgContent1">
					<td width="87" height="35">&nbsp;</td>
					<td>
						<div align="right" class="STYLE2">*高校名称:</div>
					</td>
					<td width="150">
					  <select id="SchoolId" name="SchoolId">
						<option value='-1'>---高校名称---</option>
						<if condition="$userdetail[0]['OrgName'] eq true"><option value="{$userdetail[0]['SchoolId']}" selected=selected>{$userdetail[0]['OrgName']}</option></if>
					  </select>
					</td>
					<td><div id="SchoolIdTip" style="width: 250px" /></td>
				</tr>
				<tr id="OrgContent2" style="display:none;">
					<td width="87" height="35">&nbsp;</td>
					<td align="right"> *高校名称: </td>
					<td width="150">
						<input type="text" name="OrgName" id="OrgName" value="{$userdetail[0]['OrgName']}" />
					</td>
					<td><div id="OrgNameTip" style="width: 250px" /></td>
				</tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
						<div align="right" class="STYLE2">*姓名：</div>
                    </td>
                    <td>
                        <span class="STYLE2">
							<input name="TrueName" type="text" value="{$userdetail[0]['TrueName']}" readonly="readonly" id="TrueName" />
						</span>
                    </td>
                    <td>
                        <div class="onShow">姓名不可以修改</div>
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*手机号码：</div>
                    </td>
                    <td>
                        <input name="PhoneNumber" type="text" value="{$userdetail[0]['PhoneNumber']}" id="PhoneNumber" />
                    </td>
                    <td>
                        <div id="PhoneNumberTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*常用邮箱：</div>
                    </td>
                    <td>
                        <input name="Email" type="text" value="{$userdetail[0]['Email']}" id="Email" />
                    </td>
                    <td>
                        <div id="EmailTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td width="256">
                        <div align="right" class="STYLE2">*教育程度：</div>
                    </td>
                    <td width="178">
                        <select name="EduLevel" id="EduLevel">
							<option value="-1">请选择</option>
							<option value="MBA">MBA</option>
							<option value="博士研究生">博士研究生</option>
							<option value="硕士研究生">硕士研究生</option>
							<option value="大学本科">大学本科</option>
							<option value="高职">高职</option>
							<option value="中职中专">中职中专</option>
						</select>
                    </td>
                    <td width="429">
                        <div id="EduLevelTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*性别：</div>
                    </td>
                    <td>
                        <span>
							<input id="Gender1" type="radio" name="Gender" value="1" checked="checked" /><label for="Gender1">男</label>
							<input id="Gender2" type="radio" name="Gender" value="0" /><label for="Gender2">女</label>
						</span>
                    </td>
                    <td>
                        <div id="GenderTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*出生日期：</div>
                    </td>
                    <td>
                        <select name="BirthDate" id="BirthDate">
							<option value="0">请选择</option>
							<for start="1983" end="2000">
								<option value="{$i}">{$i}</option>
							</for>
						</select>年
						<select name="BirthDate2" id="BirthDate2">
							<option value="0">请选择</option>
							<for start="1" end="13">
								<option value="{$i}">{$i}</option>
							</for>
						</select>
                    </td>
                    <td>
                        <div id="BirthDateTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*入学时间：</div>
                    </td>
                    <td>
                        <select name="EnterSchoolDate" id="EnterSchoolDate">
							<option value="0">请选择</option>
							<for start="2000" end="2016">
								<option value="{$i}">{$i}</option>
							</for>
						</select>年
						<select name="EnterSchoolDate2" id="EnterSchoolDate2">
							<option value="0">请选择</option>
							<for start="1" end="13">
								<option value="{$i}">{$i}</option>
							</for>
						</select>
                    </td>
                    <td>
                        <div id="EnterSchoolDateTip" style="width: 250px"></div>
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*毕业时间：</div>
                    </td>
                    <td>
                        <select name="GraduateDate" id="GraduateDate">
							<option value="0">请选择</option>
							<for start="2010" end="2021">
								<option value="{$i}">{$i}</option>
							</for>
						</select>年
						<select name="GraduateDate2" id="GraduateDate2">
							<option value="0">请选择</option>
							<for start="1" end="13">
								<option value="{$i}">{$i}</option>
							</for>
						</select>
                    </td>
                    <td>
                        <div id="GraduateDateTip" style="width: 250px"></div>
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*学生证号：</div>
                    </td>
                    <td>
                        <input name="SchoolNumber" type="text" id="SchoolNumber" />
                    </td>
                    <td>
                        <div id="SchoolNumberTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*所在院系：</div>
                    </td>
                    <td>
                        <span class="STYLE2"><input name="College" type="text" id="College" /></span>
                    </td>
                    <td>
                        <div id="CollegeTip" style="width:250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*专业类别：</div>
                    </td>
                    <td>
                        <span class="STYLE2">
                            <select name="MajorCate" id="MajorCate">
								<option value="0">————请选择————</option>
								<volist name="majorcate" id="vo">
								<option value="{$vo.Id}">{$vo.Name}</option>
								</volist>
							</select>
                        </span>
                    </td>
                    <td>
                        <div id="MajorCateTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*专业名称：</div>
                    </td>
                    <td>
                        <span class="STYLE2">
                            <input name="MajorName" type="text" id="MajorName" />
                        </span>
                    </td>
                    <td>
                        <div id="MajorNameTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">* 通讯地址：</div>
                    </td>
                    <td>
                        <input name="Address1" type="text" id="Address1" style="width:40px;" /> 省 <input name="Address2" type="text" id="Address2" style="width:40px;" /> 市 <input name="Address3" type="text" id="Address3" style="width:40px;" /> 区
                        <input name="Address4" type="text" id="Address4" style="width:120px;"/>
                    </td>
                    <td>
                        <div id="AddressTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td  width="87"></td>
                    <td></td>
                    <td colspan="2">一定要认真填写哦，此项是大赛组委会联系大家的另外一个重要途径</td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*邮政编码：</div>
                    </td>
                    <td>
                        <input name="PostalCode" type="text" id="PostalCode" />
                    </td>
                    <td>
                        <div id="PostalCodeTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">固定电话：</div>
                    </td>
                    <td>
                        <input name="FixedPhone1" type="text" id="FixedPhone1" style="width:30px;" />
                        -
                        <input name="FixedPhone2" type="text" id="FixedPhone2" style="width: 60px;" />
                        -
                        <input name="FixedPhone3" type="text" id="FixedPhone3" style="width: 30px;" />
                    </td>
                    <td>
                        <div id="FixedPhoneTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">*身份证号：</div>
                    </td>
                    <td>
                        <input name="IdCard" type="text" id="IdCard" />
                    </td>
                    <td>
                        <div id="IdCardTip" style="width: 250px" />
                    </td>
                </tr>
				<tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">* MSN：</div>
                    </td>
                    <td>
                        <input name="MSN" type="text" id="MSN" />
                    </td>
                    <td>
                        <div id="MSNTip" style="width: 250px" />
                    </td>
                </tr>
				<tr>
                    <td colspan="2"></td>
                    <td colspan="2">还没有MSN吗？<a href="https://signup.msn.cn/?source=NeWinner&medium=HP" style="color:Red" target="_blank">点击这里注册</a>，领取进入职场的第一张名片，获得与职场精英在线交流的机会。</td>
                </tr>
                <tr>
                    <td width="87" height="35"> &nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">* QQ：</div>
                    </td>
                    <td>
                        <input name="QQ" type="text" id="QQ" />
                    </td>
                    <td>
                        <div id="QQTip" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">飞信号：</div>
                    </td>
                    <td>
                        <input name="Fetion" type="text" id="Fetion" />
                    </td>
                    <td>
                        <div id="FetionTip" style="width: 250px" />
                    </td>
                </tr>
				<tr>
                    <td colspan="2"></td>
                    <td colspan="2"><a target="_blank" style="color: Blue" href="https://feixin.10086.cn/account/register?returnurl=">还没有飞信号吗？点击这里注册吧，非常简单 ！</a></td>
                </tr>
				<tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">微博：</div>
                    </td>
                    <td>
                        <input name="Weibo" type="text" id="Weibo" />
                    </td>
                    <td>
                        <div id="Weibo" style="width: 250px" />
                    </td>
                </tr>
                <tr>
                    <td width="87" height="35">&nbsp;</td>
                    <td>
                        <div align="right" class="STYLE2">个人简介：</div>
                    </td>
                    <td>
                        <textarea name="PersonalIntroduce" id="PersonalIntroduce" cols="50" rows="10"></textarea>
                    </td>
					<td>
                        <div id="PersonalIntroduceTip" style="width: 250px" />
                    </td>
                </tr>
            </table>
            <p style="padding-top: 15px; padding-bottom: 15px;" class="list1">
                <input type="submit" name="button" value="提交" id="button" class="input-button" />
                <input type="button" class="input-button gray" value="返回" onclick="javascript:history.go(-1);" /></p>
        </form>
		</div>		
    </div>
    <div class="clear"></div>
	<!--此处引入 footer文件-->
	<include file="./Match/Tpl/Include/footer.html" />
	<!--此处引入 footer文件-->
</div>
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formID:"regdetailForm",autoTip:false,onError:function(msg){alert(msg)},inIframe:true});
	$("#OrgLocationId").formValidator({onShow:"请选择！",onFocus:"必须选择！",onCorrect:"　",defaultValue:""}).inputValidator({min:1,onError: "你是不是忘记选择了!"}).defaultPassed();
	$("#SchoolId").formValidator({onShow:"请选择！",onFocus:"必须选择！",onCorrect:"　",defaultValue:""}).inputValidator({min:1,onError: "你是不是忘记选择了!"}).defaultPassed();
	$("#PhoneNumber").formValidator({onShow:"请输入你的手机号码！",onFocus:"请输入你的手机号码！",onCorrect:"　"}).inputValidator({min:11,max:11,onError:"手机号码必须是11位的,请确认"}).regexValidator({regExp:"mobile",dataType:"enum",onError:"你输入的手机号码格式不正确"}).defaultPassed();
	$("#Email").formValidator({onShow:"请输入正确的邮箱！",onFocus:"请输入正确的邮箱！",onCorrect:"　"}).inputValidator({min:6,max:100,onError:"你输入的邮箱长度非法,请确认"}).regexValidator({regExp:"email",dataType:"enum",onError:"你输入的邮箱格式不正确"}).defaultPassed();
	$("#EduLevel").formValidator({onShow:"请选择！",onFocus:"必须选择！",onCorrect:"　",defaultValue:""}).inputValidator({min:1,onError: "你是不是忘记选择了!"});
	$("#BirthDate").formValidator({onShow:"请选择！",onFocus:"必须选择！",onCorrect:"　"}).inputValidator({min:1,onError: "你是不是忘记选择了!"});
	$("#BirthDate2").formValidator({tipID:"BirthDateTip",onShow:"请选择！",onFocus:"必须选择日期！",onCorrect:"　"}).inputValidator({min:1,onError: "你是不是忘记选择了!"});
	$("#EnterSchoolDate").formValidator({onShow:"请选择！",onFocus:"必须选择！",onCorrect:"　"}).inputValidator({min:1,onError: "你是不是忘记选择了!"});
	$("#EnterSchoolDate2").formValidator({tipID:"EnterSchoolDateTip",onShow:"请选择！",onFocus:"必须选择日期！",onCorrect:"　"}).inputValidator({min:1,onError: "你是不是忘记选择了!"});
	$("#GraduateDate").formValidator({onShow:"请选择！",onFocus:"必须选择！",onCorrect:"　"}).inputValidator({min:1,onError: "你是不是忘记选择了!"});
	$("#GraduateDate2").formValidator({tipID:"GraduateDateTip",onShow:"请选择！",onFocus:"必须选择日期！",onCorrect:"　"}).inputValidator({min:1,onError: "你是不是忘记选择了!"});
	$("#SchoolNumber").formValidator({onShow:"学号是必填项！",onFocus:"学号最多20个数字！",onCorrect:"　"}).inputValidator({min:6,max:20,onError:"学号最多20个数字！"}).regexValidator({regExp:"num",dataType:"enum",onError:"学号最多20个数字"});
	$("#College").formValidator({onShow:"所在院系是必填项！", onFocus:"请输入2-20个简体中文",onCorrect: "　",defaultValue:""}).inputValidator({min:4,max:40,empty:{leftEmpty:false,rightEmpty:false,emptyError:"所在院系两边不能有空符号"},onError:"必须填，请输入2-20个简体中文"}).regexValidator({regExp:"chinese",dataType:"enum",onError:"必须填，请输入2-20个简体中文"});
	$("#MajorCate").formValidator({onShow:"请选择！",onFocus:"必须选择！",onCorrect:"　"}).inputValidator({min:1,onError: "你是不是忘记选择了!"});
	$("#MajorName").formValidator({onShow:"请输入专业名称！", onFocus:"专业名称不得为空！",onCorrect: "　",defaultValue:""}).inputValidator({min:4,max:40,empty:{leftEmpty:false,rightEmpty:false,emptyError:"所在院系两边不能有空符号"},onError:"必须填，请输入2-20个简体中文"}).regexValidator({regExp:"chinese",dataType:"enum",onError:"必须填，请输入2-20个简体中文"});
	$("#Address1").formValidator({tipID:"AddressTip",onShow:"输入通讯地址！",onFocus:"如果是直辖市，省份可以不填！",onCorrect:"　",empty:true}).inputValidator({min:1,max:20,onError:"地址错误！"});
	$("#Address2").formValidator({tipID:"AddressTip",onShow:"输入通讯地址！",onFocus:"请输入你所在的城市！",onCorrect:"　"}).inputValidator({min:1,max:20,onError:"所在城市不能为空！"});
	$("#Address3").formValidator({tipID:"AddressTip",onShow:"输入通讯地址！",onFocus:"请输入你所在的区和县城！",onCorrect:"　"}).inputValidator({min:1,max:20,onError:"区和县城名称不能为空！"});
	$("#Address4").formValidator({tipID:"AddressTip",onShow:"输入通讯地址！",onFocus:"请输入街道或乡镇村名称及门牌号！",onCorrect:"　"}).inputValidator({min:1,max:40,onError:"请输入街道或乡镇村名称及门牌号！"});
	$("#PostalCode").formValidator({onShow:"请输入邮政编码！",onFocus:"邮政编码6位！",onCorrect:"　"}).regexValidator({regExp:"zipcode",dataType:"enum",onError:"你输入的邮政编码不正确"});
	$("#FixedPhone1").formValidator({tipID:"FixedPhoneTip",onShow:"输入电话号码，可不写！",onFocus:"填写区号！",onCorrect:"　",empty:true}).inputValidator({min:1,max:5,onError:"号码错误！"});
	$("#FixedPhone2").formValidator({tipID:"FixedPhoneTip",onShow:"输入电话号码，可不写！",onFocus:"电话号码7到8位数字！",onCorrect:"　",empty:true}).inputValidator({min:1,max:8,onError:"号码错误！"});
	$("#FixedPhone3").formValidator({tipID:"FixedPhoneTip",onShow:"输入电话号码，可不写！",onFocus:"分机号码1到5位数字！",onCorrect:"　",empty:true}).inputValidator({min:1,max:5,onError:"号码错误！"});
	$("#IdCard").formValidator({onShow:"请输入15或18位的身份证",onFocus:"输入15或18位的身份证",onCorrect:"　"}).functionValidator({fun:isCardID}).ajaxValidator({
		dataType : "html",
		type : "POST",
		async : true,
		url : "__URL__/checkIdCard",
		success : function(data){
            if( data == '0' ) {return true};
			return false;
		},
		buttons: $("#button"),
		error: function(jqXHR, textStatus, errorThrown){alert("服务器没有返回数据，可能服务器忙，请重试"+errorThrown);},
		onError : "该身份证已被使用，请更换身份证",
		onWait : "正在对身份证进行合法性校验，请稍候..."
	});
	$("#QQ").formValidator({onShow:"QQ为必填项！",onFocus:"格式例如：123456789！",onCorrect:"　"}).inputValidator({min:5,max:11,onError:"请填写正确的QQ号码！"}).regexValidator({regExp:"num",dataType:"enum",onError:"请填写正确的QQ号码！"});
	$("#MSN").formValidator({onShow:"提交方案的团队必须填写MSN账号！",onFocus:"请填写有效的MSN账号",onCorrect:"　"}).inputValidator({min:6,max:100,onError:"填写的MSN账号不正确,请确认"}).regexValidator({regExp:"email",dataType:"enum",onError:"填写的MSN账号不正确,请确认"});
	$("#Fetion").formValidator({onShow:"请输入您的飞信号，可以为空哦！",onFocus:"格式例如：123456789！",onCorrect:"　",onEmpty:"你真的不想留飞信号了吗？",empty:true}).inputValidator({min:5,max:11,onError:"请填写正确的QQ号码！"}).regexValidator({regExp:"num",dataType:"enum",onError:"请填写正确的QQ号码！"});
	$("#PersonalIntroduce").formValidator({onShow:"内容控制在0-300个字之内！",onFocus:"描述最多为300个字符",onCorrect:"　",onEmpty: "你真的不填写个人描述了吗？",empty:true}).inputValidator({min:0,max:600,onError:"超出长度啦！"});
	$("#OrgLocationId").change(function(){
		var id=$(this).val();
		$.get("__URL__/getSchoolList/pro/"+id,function(data){
			if(data){
				$("#SchoolId").empty();
				$("#SchoolId").append('<option>---高校名称---</option>');
				for(var i=0;i<data.length;i++){
					$("#SchoolId").append("<option value='"+data[i].Id+"'>"+data[i].SchoolName+"</option>");
				}
				$("#SchoolId").append('<option value="0">其他</option>');
			}
		},"json");
		$("#OrgContent1").show();
		$("#OrgContent2").hide();
		$("#OrgLocation").val($("#OrgLocationId option:selected").text());
	});
	$("#SchoolId").change(function(){
		if($(this).val() == '0'){
			$("#OrgContent1").hide();
			$("#OrgContent2").show();
			$("#OrgName").val('');
			$("#OrgName").formValidator({onShow:"没有您所在的高校？请手动填写！", onFocus:"请手动填写您所在高校！",onCorrect: "　",defaultValue:""}).inputValidator({min:1,max:50,empty:{leftEmpty:false,rightEmpty:false,emptyError:"两边不能有空符号"},onError:"名称必须为简体中文"}).regexValidator({regExp:"chinese",dataType:"enum",onError:"名称必须为简体中文"});
		}else{
			$("#OrgName").val($("#SchoolId option:selected").text());
		}
	});
});
	function callbackredirct(){
		window.location.href="__APP__/Student/Home/index"
	}

</script>
</body>
</html>